/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 *
 */

import path from 'path';

import { HVIGOR, PNPM_TOOL } from '../common/const/const.js';

import { getHvigorUserHomeDir } from './hvigor-user-home-wapper.js';

export const HVIGOR_USER_HOME = getHvigorUserHomeDir();
export const HVIGOR_WRAPPER_TOOLS_HOME = path.resolve(HVIGOR_USER_HOME, 'wrapper', 'tools');
export const HVIGOR_WRAPPER_PNPM_SCRIPT_PATH = path.resolve(HVIGOR_WRAPPER_TOOLS_HOME, 'node_modules', '.bin', PNPM_TOOL);
export const HVIGOR_PNPM_STORE_PATH = path.resolve(HVIGOR_USER_HOME, 'caches');
export const HVIGOR_PROJECT_ROOT_DIR = process.cwd();
export const HVIGOR_PROJECT_WRAPPER_HOME = path.resolve(HVIGOR_PROJECT_ROOT_DIR, HVIGOR);
